package com.hoas.api.core.entity;

public enum ErrorMessage {

    NO_TOKEN("9003","token缺失"),
    TOKEN_INVALID("9004", "token失效"),
    BUSINESSID_NOTFOUND("9001", "businessId缺失"),
    BUSINESSID_UNKNOWN("9002", "未知接口"),
    BUSSINESSID_UNAUTH("9008", "接口未被授权访问"),
    PARAMETER_PARSING_ERROR("9006", "参数解析异常"),
    PARAMETER_CONVERT_ERROR("9007", "请求参数转换异常"),

    REQUIRED_PARAMETER_NOTFOUND("9100", "必要参数缺失[username,password]"),
    USER_NOTFOUND("9101", "用户不存在"),
    USER_OR_PASS_ERROR("9102", "用户名或密码错误");

    private String code;

    private String message;

    ErrorMessage(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
